package com.translate.web.param;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IRegisterParamByPhone;

public class RegisterParamByMobile implements IRegisterParamByPhone {

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.PHONE_BY_PATTERN, message = ValidateCondtionAndMessage.PHONE_BY_PATTERN_MSG)
	private String phone;

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.NUMBER, message = ValidateCondtionAndMessage.NUMBER_MSG)
	private String code;
	

	@NotNull
	private String pwd;
	
	@NotNull
	private String pwdInputAgin;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPwdInputAgin() {
		return pwdInputAgin;
	}

	public void setPwdInputAgin(String pwdInputAgin) {
		this.pwdInputAgin = pwdInputAgin;
	}

}
